//------------------------------------------------------------------------------
// TI Confidential - NDA Restrictions
//
// Copyright (c) 2013 Texas Instruments, Inc.
//
//    This is an unpublished work created in the year stated above.
//    Texas Instruments owns all rights in and to this work and
//    intends to maintain and protect it as an unpublished copyright.
//    In the event of either inadvertent or deliberate publication,
//    the above stated date shall be treated as the year of first
//    publication. In the event of such publication, Texas Instruments
//    intends to enforce its rights in the work under the copyright
//    laws as a published work.
//
//------------------------------------------------------------------------------
//
// This file is auto-generated and should not be edited 
// Generated Tue Apr  1 15:06:35 2014 using the following files:
// /vobs/cc26xxFwDev/radio_domain/patch/topsm_zigbee/rfe/src/rfe_ram_bank.asm@@/main/8      Rule: /main/LATEST
// /vobs/cc26xxFwDev/radio_domain/patch/topsm_zigbee/rfe/src/dbg.asm@@/main/1               Rule: /main/LATEST
// /vobs/cc26xxFwDev/radio_domain/patch/topsm_ble/rfe/src/rfe_commonlib.asm@@/main/24       Rule: /main/LATEST
// /vobs/cc26xxFwDev/radio_domain/patch/topsm_zigbee/rfe/doc/rfeadiconf.txt@@/main/3        Rule: /main/LATEST
// /vobs/cc26xxIpDev/modules/cc26_rfcore/doc/RFEregs.txt@@/main/21          Rule: CC26_RFCORE--SOFTMACRO--DEV--0.8--N.A.08.01--GS60--2013.05.02
// /vobs/cc26xxIpDev/modules/cc26_rfcore/doc/RFEADIregs.txt@@/main/8        Rule: CC26_RFCORE--SOFTMACRO--DEV--0.8--N.A.08.01--GS60--2013.05.02
//

// This file implements patches for the RFE on CC26xx
// It should only be included from ONE source file to avoid duplicated constant arrays


#ifndef _APPLY_RFE_ZIGBEE_PATCH_H
#define _APPLY_RFE_ZIGBEE_PATCH_H

#include <stdint.h>

#ifndef RFE_PATCH_TYPE
#define RFE_PATCH_TYPE static const uint32_t
#endif

#ifndef PATCH_FUN_SPEC
#define PATCH_FUN_SPEC static inline
#endif

#define RFERAM_ADD_BASE 0x2100C000  

RFE_PATCH_TYPE patchZigbeeRfe[296] = { 
   0x00006140,
   0x07f7177f,
   0x00bb07ff,
   0x0000000f,
   0x002e0004,
   0x0000003f,
   0x00000000,
   0x00000000,
   0x00000000,
   0x00000000,
   0x40004030,
   0x40034001,
   0x400f4007,
   0x40cf404f,
   0x43cf41cf,
   0x4fcf47cf,
   0x2fcf3fcf,
   0x0fcf1fcf,
   0x00000000,
   0x00000000,
   0x000f0002,
   0x00040008,
   0x0000003f,
   0x001f0082,
   0x00060000,
   0x000e0068,
   0x004700ae,
   0x00160077,
   0x00000002,
   0x00020080,
   0x00000000,
   0x00000000,
   0x00c00006,
   0x00060000,
   0x000000c0,
   0x00000007,
   0x00000000,
   0x00000000,
   0x00000000,
   0x00000000,
   0x9100c050,
   0xc0707000,
   0x70009100,
   0x00213182,
   0xb1109131,
   0x81017000,
   0xa100b101,
   0x91323182,
   0x9101b110,
   0x81411011,
   0x40632241,
   0x700006f1,
   0x9101c051,
   0x39101830,
   0xd0083183,
   0x6f413118,
   0x91310031,
   0x1483b110,
   0x686f1614,
   0x10257000,
   0x9100c050,
   0xc140c3f4,
   0x6f031420,
   0x04411031,
   0x3182c022,
   0x91310021,
   0x3963b110,
   0x04411031,
   0x3182c082,
   0x91310021,
   0x3963b110,
   0xc0a21031,
   0x00213182,
   0xb1109131,
   0x31151050,
   0x92051405,
   0x92f5dfb0,
   0x70006520,
   0x9101c051,
   0xc0e2cc01,
   0x64536456,
   0xc0c2c111,
   0xb0546456,
   0xa0547100,
   0x80f0b064,
   0x40a52200,
   0xc122c111,
   0xc0516456,
   0xc0e29101,
   0x82603182,
   0x91320002,
   0xc300b110,
   0x124068b8,
   0xb03290b0,
   0x68bdc300,
   0x64537000,
   0xc122c101,
   0xc1016456,
   0x6456c0c2,
   0x64537000,
   0x1612c262,
   0x6456c081,
   0xc111c122,
   0xc0026456,
   0x6456c111,
   0xc331c062,
   0x64536456,
   0xc111c362,
   0xc3026456,
   0x6456c111,
   0x645bc3e2,
   0x40dc2211,
   0xc881c242,
   0xc2426456,
   0xc1111612,
   0xc2626456,
   0xcee11612,
   0xc2026456,
   0x6456c881,
   0xc801c202,
   0xc0b06456,
   0x700068f2,
   0xc2426453,
   0x6456c801,
   0x1612c242,
   0x6456c011,
   0x1612c262,
   0x6456c0e1,
   0xc101c002,
   0xc0626456,
   0x6456c301,
   0xc101c122,
   0xc3626456,
   0x6456c101,
   0xc101c302,
   0x70006456,
   0x3162c102,
   0x80a0c001,
   0x41181e00,
   0x611a1a10,
   0x1a101020,
   0x6e236f13,
   0x16121611,
   0x7000691a,
   0x82d092e0,
   0x45212200,
   0x7000b2c0,
   0x00000000,
   0x00000000,
   0x00000000,
   0x00000000,
   0x00000000,
   0x00000000,
   0x00000000,
   0x00000000,
   0x00000000,
   0x00000000,
   0x00000000,
   0x00000000,
   0x00000000,
   0x72057306,
   0x720e720b,
   0x7100b050,
   0xb0608081,
   0x8092a050,
   0x92f1eff0,
   0x65209302,
   0x45632241,
   0xc1f18080,
   0x16300410,
   0x14011101,
   0x61746c01,
   0x61766175,
   0x61786177,
   0x617a6179,
   0x617e617c,
   0x61826180,
   0x8091624d,
   0x80823111,
   0x14122a42,
   0x11011632,
   0x6c011421,
   0x61ac6192,
   0x61ac6192,
   0x61ac6192,
   0x61ac6192,
   0x61846184,
   0x61846184,
   0x61846184,
   0x6184649c,
   0x618464bf,
   0x618464c7,
   0x618464f4,
   0x61846510,
   0xdfe08082,
   0x652092f2,
   0x90b01210,
   0x1220618d,
   0x730690b0,
   0x12107205,
   0x61449030,
   0x6520cfd0,
   0xc003c284,
   0x6468c3c0,
   0x91507850,
   0x31107860,
   0x14107861,
   0x78609200,
   0x78713140,
   0x31400010,
   0x00107881,
   0x78909210,
   0x78a09220,
   0x61849260,
   0x80f0a054,
   0x45b42250,
   0x22008040,
   0x61ac4638,
   0x06f28212,
   0x821a102e,
   0x10a9394a,
   0x394a06f9,
   0x10c210ac,
   0x822d6477,
   0x782010cb,
   0x66049190,
   0xb053b013,
   0xb050b063,
   0xb064b054,
   0x80f0b003,
   0x41ac2250,
   0x80417100,
   0x46382201,
   0x41d52241,
   0xb063b064,
   0x91c081b0,
   0x80f081df,
   0x46362200,
   0x22408090,
   0x10f34636,
   0x4dea18d3,
   0x16130bf3,
   0x4a361ce3,
   0x81e391c3,
   0x61ef143b,
   0x4a361ce3,
   0x81e391c3,
   0x1cab183b,
   0x1c9b4e00,
   0x1cbc4a02,
   0x10bc4236,
   0x647710b2,
   0x66136613,
   0x7100b063,
   0x7100b063,
   0x61cbb063,
   0x61f310ab,
   0x61f3109b,
   0x78407837,
   0x1a101870,
   0x6e71c001,
   0x6a091617,
   0x12087837,
   0xc800c006,
   0x91709160,
   0x10f07000,
   0x18108201,
   0x6d716d71,
   0x14061816,
   0x16176e70,
   0x1c177841,
   0x78374620,
   0x1e881618,
   0x10604635,
   0x81513930,
   0x3d813181,
   0x80f11410,
   0x41ac2251,
   0x81719160,
   0x3d813181,
   0x4a331c10,
   0xb0319170,
   0x70001278,
   0x61cb6613,
   0x81628201,
   0x3d823182,
   0x92f1efc0,
   0x65209302,
   0x64f4a003,
   0x73061210,
   0x90b07205,
   0xb050b030,
   0x73067100,
   0xb03090b0,
   0x80a26144,
   0x61846477
};

PATCH_FUN_SPEC void enterZigbeeRfePatch(void)
{
   for (uint32_t i = 0; i < 296; i++) { 
      HWREG(RFERAM_ADD_BASE + 4 * i) = patchZigbeeRfe[i]; 
   } 
}

#endif
